algalcommand.alpha
Class AlgalCommandApp
java.lang.Object
org.jdesktop.application.AbstractBean
org.jdesktop.application.Application
org.jdesktop.application.SingleFrameApplication
algalcommand.alpha.AlgalCommandApp
public class AlgalCommandApp
- extends org.jdesktop.application.SingleFrameApplication
The main class of the application.
| Nested classes/interfaces inherited from class org.jdesktop.application.Application |
org.jdesktop.application.Application.ExitListener |
|
Field Summary |
static java.lang.String |
APPLICATION_DIRECTORY_PATH
This is the filepath of the folder where the jar executable resides |
|
Method Summary |
protected void |
configureWindow(java.awt.Window root)
This method is to initialize the specified window by injecting resources. |
static AlgalCommandApp |
getApplication()
A convenient static getter for the application instance. |
static void |
main(java.lang.String[] args)
Main method launching the application. |
static java.io.File |
makeLocalFile(java.lang.String localfolder,
java.lang.String filename,
boolean makedir)
Makes a local folder and references a file in that folder. |
protected void |
startup()
At startup create and show the main frame of the application. |
| Methods inherited from class org.jdesktop.application.SingleFrameApplication |
getMainFrame, getMainView, setMainFrame, show, show, show, show, shutdown |
| Methods inherited from class org.jdesktop.application.Application |
addExitListener, end, exit, exit, getContext, getExitListeners, getInstance, getInstance, hide, initialize, launch, quit, ready, removeExitListener |
| Methods inherited from class org.jdesktop.application.AbstractBean |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
APPLICATION_DIRECTORY_PATH
public static java.lang.String APPLICATION_DIRECTORY_PATH
- This is the filepath of the folder where the jar executable resides
AlgalCommandApp
public AlgalCommandApp()
makeLocalFile
public static java.io.File makeLocalFile(java.lang.String localfolder,
java.lang.String filename,
boolean makedir)
- Makes a local folder and references a file in that folder. Filepaths will
be local in the sense that it will be as if the working directory is the
same as the executing jar file.
- Parameters:
localfolder - Name of the local folder that the file will be in. Use
"." for 'no folder'.filename - The name of the file in that folder that you want to
reference.makedir - Whether or not to create a folder if the folder does not
already exists. This chould be true when you want to save to
the file, and false when we are only interested in testing
whether or not the file exists.
- Returns:
- A
File object referencing the specified local file.
startup
protected void startup()
- At startup create and show the main frame of the application.
- Specified by:
startup in class org.jdesktop.application.Application
configureWindow
protected void configureWindow(java.awt.Window root)
- This method is to initialize the specified window by injecting resources.
Windows shown in our application come fully initialized from the GUI
builder, so this additional configuration is not needed.
- Overrides:
configureWindow in class org.jdesktop.application.SingleFrameApplication
getApplication
public static AlgalCommandApp getApplication()
- A convenient static getter for the application instance.
- Returns:
- the instance of AlgalCommandApp
main
public static void main(java.lang.String[] args)
- Main method launching the application.